package com.example.ormsqlsplicingframe1;

import com.example.ormsqlsplicingframe1.note.JoinSession;
import com.example.ormsqlsplicingframe1.note.JoinTransaction;
import com.example.ormsqlsplicingframe1.orm.entity.SysUser;
import com.example.ormsqlsplicingframe1.session.SessionUtil;
import com.example.ormsqlsplicingframe1.warpper.SelectSqlWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.xml.ws.Action;
import java.util.List;


@Service
public class DemoService {

    @Autowired
    private DemoServiceTow demoServiceTow;

    @Transactional
    public void aa(){

        List<SysUser> sysUsers = SelectSqlWrapper.newSelectSqlWrapper(SysUser.class).selectList();

        int a= 0;
        // demoServiceTow.aa();
    }

}
